﻿using ShanNiang.Hosting.Common;
using ShanNiang.Hosting.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.PackingModels.Requests
{
    /// <summary>
    /// 分页查询商品请求
    /// </summary>
    public class GetItemsPageRequest : PageRequest
    {
        ///// <summary>
        ///// 企业id
        ///// </summary>
        //public Guid? EnterpriseId { get; set; }
        /// <summary>
        /// 名称筛选
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 箱规
        /// </summary>
        public int? BoxSize { get; set; }
        /// <summary>
        /// 条码筛选
        /// </summary>
        public string? Barcode { get; set; }
        /// <summary>
        /// 是否开启配货
        /// </summary>
        public bool? OpenDistribution { get; set; }

        public override ApiServer ApiServer => ApiServer.XkmServer;
        public override HttpMethod Method => HttpMethod.Get;

        public override bool NeedToken => true;

        protected override string RequestPath => "/api/Packing/GetItemsPage";
    }
}
